﻿using System;
using System.Xml.Serialization;

namespace WSOAMOBIMIDWARE
{
    [XmlInclude(typeof(HTTPOA_Action))]
    [XmlRootAttribute("root")]
    public class HTTPOA_PageMenuSet
    {
        [XmlAttribute("ID")]
        public string menuSetId { get; set; }
        [XmlAttribute("nottoapp")]
        public string isDisabled { get; set; }
        [XmlElementAttribute("np")]
        public string np { get; set; }
        [XmlElementAttribute("jp")]
        public string jp { get; set; }
        [XmlElementAttribute("img")]
        public string img { get; set; }
        [XmlElementAttribute("char")]
        public string message { get; set; }
        [XmlElementAttribute("hidden")]
        public string isHidden { get; set; }
        [XmlElementAttribute("selectid")]
        public string selectid { get; set; }
        [XmlElementAttribute("submenu")]
        public string submenu { get; set; }
        [XmlElementAttribute("menu")]
        public HTTPOA_PageMenu[] menu { get; set; }
        [XmlElementAttribute("action")]
        public object _action
        {
            get
            {
                return action;
            }
            set
            {
                string temp_actionId;
                HTTPOA_Action temp_action;
                HTTPOA_Action.CastXmlToType(value, out temp_action, out temp_actionId);
                actionId = temp_actionId;
                action = temp_action;
            }
        }
        [XmlIgnoreAttribute]
        public string actionId { get; set; }
        [XmlIgnoreAttribute]
        public HTTPOA_Action action { get; set; }
    }
}
